import { createRouter, createWebHistory } from 'vue-router';
import insertComponent from '../components/insertComponent.vue';
import updateComponent from '../components/updateComponent.vue';

const routes = [
  {
    path: '/',
    name: 'insert',
    component: insertComponent
  },
  {
    path: '/update',
    name: 'update',
    component: updateComponent
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;
